package com.binest.inclusionExamine.mapper;



import com.binest.inclusionExamine.domain.InclusionExamine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 收录审核Mapper接口
 * 
 * @author binest
 * @date 2024-01-04
 */
@Mapper
public interface InclusionExamineMapper 
{
    /**
     * 查询收录审核
     * 
     * @param id 收录审核主键
     * @return 收录审核
     */
    public InclusionExamine selectInclusionExamineById(String id);
    public InclusionExamine selectInclusionExamineByProjectId(String id);
    /**
     * 查询收录审核列表
     * 
     * @param inclusionExamine 收录审核
     * @return 收录审核集合
     */
    public List<InclusionExamine> selectInclusionExamineList(InclusionExamine inclusionExamine);

    /**
     * 新增收录审核
     * 
     * @param inclusionExamine 收录审核
     * @return 结果
     */
    public int insertInclusionExamine(InclusionExamine inclusionExamine);

    /**
     * 修改收录审核
     * 
     * @param inclusionExamine 收录审核
     * @return 结果
     */
    public int updateInclusionExamine(InclusionExamine inclusionExamine);


    public int updateStatus(@Param("id")String id, @Param("status") String status);
    public String getExamineStatus(String projectId);
    public int updateStatusByHash(@Param("qmHash")String qmHash, @Param("status") String status);
    public int updateClaimStatus(@Param("qmHash")String qmHash, @Param("claimStatus") String claimStatus);


    /**
     * 删除收录审核
     * 
     * @param id 收录审核主键
     * @return 结果
     */
    public int deleteInclusionExamineById(String id);

    /**
     * 批量删除收录审核
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInclusionExamineByIds(String[] ids);

    public String findInclusionExamineId(String projectId);
}
